<?php

class Application_Form_Authentification extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	
    	$this->setName("FormulaireAuthentification");
    	
    	$login = new Zend_Form_Element_Text('login');
    	$login->setLabel('Login')
    	->setRequired(true)
    	->addFilter('StripTags')
    	->addFilter('StringTrim')
    	->addValidator('NotEmpty')
    	->setAttrib('class','validate[required] text-input');
    	
    	$pwd = new Zend_Form_Element_Password('motpass');
    	$pwd->setLabel('Mot de passe')
    	->setRequired(true)
    	->addFilter('StripTags')
    	->addFilter('StringTrim')
    	->addValidator('NotEmpty')
    	->setAttrib('class','validate[required] text-input');
    	
    	$valider = new Zend_Form_Element_Submit("submit");
    	$valider->setLabel("Connecter");
    	
    	$this->addElements(array($login,$pwd,$valider));
  		$this->setDecorators( array( array('ViewScript', array('viewScript' => 'inscriptionprotypeform.phtml'))));
      }
}